<template>
	<view>
	 <unicloud-db ref="udb" v-slot:default="{data, loading, error, options}" collection="resume">
	 	<view v-if="error">{{error.message}}</view>
	 	<view v-else>
			<uni-list>
				<uni-list-item v-for="item in data" @longpress.native="reItem(item._id)" :key="item._id" :title="item.name" :note="item.tel"></uni-list-item>
			</uni-list>
	 	</view>
	 </unicloud-db>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			reItem(id){
				this.$refs.udb.remove(id)
			}
		}
	}
</script>

<style>
	
</style>
